import { connect } from '../../vendors/weapp-redux.js'

let pageConfig = {
  data: {
    personalData: {}
  },
  personalDetail(event) {
    wx.navigateTo({
      url: '/pages/my-business-card/my-business-card'
    })
  },
  about(event) {
    wx.navigateTo({
      url: '/pages/about/about'
    })
  }
}

let mapStateToData = state => {
  return {
    personalData: state.personal
  }
}

let mapDispatchToPage = dispatch => ({
})

pageConfig = connect(mapStateToData, mapDispatchToPage)(pageConfig)
Page(pageConfig)
